<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentModfilfShortChain extends Migrator
{
    public function up()
    {
        $sql = <<<SQL
        ALTER TABLE `agent` ADD COLUMN `is_short_chain` tinyint (3) NOT NULL  DEFAULT '1' COMMENT '是否支持自定义链接 1支持 2不支持';

SQL;
        $this->execute($sql);
    }

    public function down()
    {
        $this->table('agent')->removeColumn('is_short_chain');
    }
}
